#ifndef SALEORDERFORM_H
#define SALEORDERFORM_H

#include <QList>

class SaleOrderForm
{
public:
    SaleOrderForm() {}
    SaleOrderForm(const SaleOrderForm &org)
    {
        m_saleOrderFormNumber = org.m_saleOrderFormNumber;
        m_memberCardNumber = org.m_memberCardNumber;
        m_memberName = org.m_memberName;
        m_quantity = org.m_quantity;
        m_totalSales = org.m_totalSales;
        m_integration = org.m_integration;
        m_memberPayment = org.m_memberPayment;
        m_cashPayment = org.m_cashPayment;
        m_CUPPayment = org.m_CUPPayment;
        m_staffName = org.m_staffName;
        m_salesDate = org.m_salesDate;
    }
    SaleOrderForm & operator =(const SaleOrderForm &other)
    {
        if (this == &other)
            return *this;
        this->m_saleOrderFormNumber = other.get_saleOrderFormNumber();
        this->m_memberCardNumber = other.get_memberCardNumber();
        this->m_memberName = other.get_memberName();
        this->m_quantity = other.get_quantity();
        this->m_totalSales = other.get_totalSales();
        this->m_integration = other.get_integration();
        this->m_memberPayment = other.get_memberPayment();
        this->m_cashPayment = other.get_cashPayment();
        this->m_CUPPayment = other.get_CUPPayment();
        this->m_staffName = other.get_staffName();
        this->m_salesDate = other.get_salesDate();
        return *this;
    }

    SaleOrderForm(const QString saleOrderFormNumber, const QString memberCardNumber,
                  const QString memberName, const QString quantity,
                  const QString totalSales, const QString integration,
                  const QString memberPayment, const QString cashPayment,
                  const QString CUPPayment, const QString staffName,
                  const QString salesDate)
    {
        m_saleOrderFormNumber = saleOrderFormNumber;
        m_memberCardNumber = memberCardNumber;
        m_memberName = memberName;
        m_quantity = quantity;
        m_totalSales = totalSales;
        m_integration = integration;
        m_memberPayment = memberPayment;
        m_cashPayment = cashPayment;
        m_CUPPayment = CUPPayment;
        m_staffName = staffName;
        m_salesDate = salesDate;
    }

    QString get_saleOrderFormNumber() const {return m_saleOrderFormNumber;}
    QString get_memberCardNumber() const {return m_memberCardNumber;}
    QString get_memberName() const {return m_memberName;}
    QString get_quantity() const {return m_quantity;}
    QString get_totalSales() const {return m_totalSales;}
    QString get_integration() const {return m_integration;}
    QString get_memberPayment() const {return m_memberPayment;}
    QString get_cashPayment() const {return m_cashPayment;}
    QString get_CUPPayment() const {return m_CUPPayment;}
    QString get_staffName() const {return m_staffName;}
    QString get_salesDate() const {return m_salesDate;}

private:
    QString m_saleOrderFormNumber ;
    QString m_memberCardNumber ;
    QString m_memberName ;
    QString m_quantity ;
    QString m_totalSales ;
    QString m_integration ;
    QString m_memberPayment ;
    QString m_cashPayment ;
    QString m_CUPPayment ;
    QString m_staffName ;
    QString m_salesDate;
};

typedef QList <SaleOrderForm> SaleOrderFormList;
#endif // SALEORDERFORM_H
